package com.mujie.controller;

import org.springframework.http.HttpRequest;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServlet;



@Controller
public class ReceiveController {

    @RequestMapping("/t1/{name}")
    public String test1(@PathVariable String name, Model model) {
        System.out.println("接收到的前端参数：" + name);

        model.addAttribute("msg", name);

        return "hello";
    }
}
